home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / misc / TCS.lha / TCS / demos / cod / do < prev    next >
Encoding:
AmigaDOS Script File  |  2000-09-26  |  627 b   |  26 lines

  1. .key SOU
  2.  
  3. ; INFO   simple script for compiling the example sources
  4. ; IN     SOU = filename (".s" can be omitted) of the source to compile
  5. ;              (none to compile all)
  6. ; NOTE   - requires PhxAss to be in the commands' path
  7. ;        - must be called from its (=sources') directory
  8.  
  9. Echo ""
  10. If "<SOU>" EQ ""
  11.  Echo "assembling all sources..."
  12.  List ~(do|s.tmp) LFORMAT "PhxAss %s TO /exe/" >s.tmp
  13.  Execute s.tmp
  14.  Delete s.tmp QUIET
  15. Else
  16.  If EXISTS "<SOU>"
  17.   Echo "assembling <SOU> ..."
  18.   PhxAss "<SOU>" TO /exe/
  19.  Else
  20.   If EXISTS "<SOU>.s"
  21.    Echo "assembling <SOU>.s ..."
  22.    PhxAss "<SOU>.s" TO /exe/
  23.   EndIf
  24.  EndIf
  25. EndIf
  26.